<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:fmt="http://java.sun.com/jstl/fmt_rt"
	xmlns:c="http://java.sun.com/jstl/core_rt" xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns="http://www.w3.org/1999/xhtml" xmlns:ct="urn:jsptagdir:/WEB-INF/tags" version="2.0">

	<jsp:directive.attribute name="category" type="com.untrance.shop.common.vo.CategoryVO" required="true" />
	<jsp:directive.attribute name="level" required="true" />

	<div class="category"><a href="/index.html?id=${category.key}"><c:out value="${category.name}" /></a></div>
	<c:if test="${!empty category.children}">
		<ct:categories list="${category.children}" level="${level+1}" />
	</c:if>
<!--	<c:choose>-->
<!--		<c:when test="${!empty category.children}">-->
<!--			<div class="category"><a href="/index.html?c_id=${category.key}"><c:out value="${category.name}" /></a></div>-->
<!--			<ct:categories list="${category.children}" level="${level+1}" />-->
<!--		</c:when>-->
<!--		<c:otherwise>-->
<!--			<div class="category"><a href="/index.html?c_id=${category.key}"><c:out value="${category.name}" /></a></div>-->
<!--		</c:otherwise>-->
<!--	</c:choose>-->
</jsp:root>